package com.wenli.graduate2022.wenliGreenShop.service.servDao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wenli.graduate2022.wenliGreenShop.entity.Category;

import java.util.List;

/**
 * @author HuangHai
 * @date 2021/10/8 18:00
 */
public interface CategoryService {
    List<Category> findAll();
    IPage<Category> findByPage(Page page);
    IPage<Category> findByName(Page page,String name);
    Category findById(Integer id);
    int insert(Category category);
    int update(Category category);
    int delete(Integer id);

}
